package com.lyf.boot.modules.system.dao;

import com.lyf.boot.base.system.dao.BaseSysPermDao;
import com.lyf.boot.base.system.entity.SysPerm;
import com.lyf.boot.modules.system.entity.vo.SysPermVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Luyufan
 * @date 2023/7/7 11:06
 */
@Repository
public interface SysPermDao extends BaseSysPermDao {


    List<SysPermVo> selectSysPermList();

    /**
     * 查询系统菜案详情
     * @author Luyufan
     * @date 2023/8/16 9:53
     * @param permId
     * @return SysPermVo
     */
    SysPermVo selectSysPermById(Long permId);

    /**
     * 查询用户的菜单
     * @author Luyufan
     * @date 2023/8/17 9:43
     * @param userId
     * @return List<SysPerm>
     */
    List<SysPerm> selectUserPerm(Long userId);

    List<String> selectUserPermCodes(Long userId);
}
